PYBIND11_ADD_MODULE(PyMesh module.cpp
    PyAABB.cpp
    PyBoolean.cpp
    PyCellPartition.cpp
    PyCGAL.cpp
    PyConvexHull.cpp
    PyDMAT.cpp
    PyFEM.cpp
    PyHashGrid.cpp
    PyIGL.cpp
    PyMeshUtils.cpp
    PyMesh.cpp
    PyMeshFactory.cpp
    PyMeshWriter.cpp
    PyOuterHull.cpp
    PyPredicates.cpp
    PySelfIntersectionResolver.cpp
    PySparseSolver.cpp
    PyTetgen.cpp
    PyTetrahedralization.cpp
    PyTriangle.cpp
    PyTriangulation.cpp
    PyMinkowskiSum.cpp
    PyVoxelGrid.cpp
    PyWindingNumber.cpp
    PyWires.cpp)
TARGET_LINK_LIBRARIES(PyMesh PRIVATE
    Mesh
    lib_assembler
    lib_MeshUtils
    cgal_wrapper
    lib_igl
    lib_predicates
    lib_convex_hull
    lib_self_intersection
    lib_boolean
    lib_outer_hull
    lib_SparseSolver
    lib_tetrahedralization
    lib_triangle_wrapper
    lib_triangulation
    lib_winding_number
    lib_wires)
TARGET_INCLUDE_DIRECTORIES(PyMesh SYSTEM PUBLIC
    ${PROJECT_SOURCE_DIR}/src
    ${PROJECT_SOURCE_DIR}/tools)
TARGET_INCLUDE_DIRECTORIES(PyMesh SYSTEM PRIVATE
    ${PROJECT_SOURCE_DIR}/src
    ${PROJECT_SOURCE_DIR}/tools
    ${EIGEN_INCLUDE_DIRS}
    ${EIGEN_INCLUDE_DIRS}/unsupported
    ${LIBIGL_INCLUDE_DIRS})
